#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
struct S1 {
	char c1;
	int num;
	char c2;
};
struct S2 {
	char c1;
	char c2;
	int num;
};
struct S3
{
    double d;
    char c;
    int i;
};

struct S4
{
    char c1;
    struct S3 s3;
    double d;
};

#include <stddef.h>
int main() {
	/*printf("%d\n", sizeof(struct  S1));
	printf("%d\n", sizeof(struct  S2));*/

	/*printf("%d\n", offsetof(struct S1, c1));
	printf("%d\n", offsetof(struct S1, num));
	printf("%d\n", offsetof(struct S1, c2));*/

	printf("%d\n", offsetof(struct S2, c1));
	printf("%d\n", offsetof(struct S2, c2));
	printf("%d\n", offsetof(struct S2, num));
	
	


	return 0;
}